import React, { PureComponent } from 'react';
import { Alert } from 'antd';
import styles from './style.less';

export default class Forget extends PureComponent {
  render() {
    const { loginError } = this.props;

    return (
      <div className={styles.top}>
        <div className={styles.header}>
          {/* <img alt='logo' className={styles.logo} src='/icons/favicon-262x212.png' /> */}
          <span className={styles.title}>长宁区城市运行值守保障管理系统</span>
        </div>
        <div className={styles.desc}>
          <Alert
            message={loginError}
            style={{ minHeight: 40, textAlign: 'left', display: loginError ? 'block' : 'none' }}
            type="error"
            showIcon
          />
        </div>
      </div>
    );
  }
}
